import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SGuildStruggleInfo
    
    export  class SGuildStruggleInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildStruggleInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.guildId);
            arg1.writeString(this.guildName);
            arg1.writeInt(this.layer);
            arg1.writeInt(this.difficulty);
            arg1.writeDate(this.openDt);
            arg1.writeInt(this.totalTime);
            arg1.writeInt(this.leftTime);
            arg1.writeBool(this.isLayerEnd);
            arg1.writeString(this.bestGuildName);
            arg1.writeInt(this.bestGuildTime);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.guildId = arg1.readInt();
            this.guildName = arg1.readString();
            this.layer = arg1.readInt();
            this.difficulty = arg1.readInt();
            this.openDt = arg1.readDate();
            this.totalTime = arg1.readInt();
            this.leftTime = arg1.readInt();
            this.isLayerEnd = arg1.readBool();
            this.bestGuildName = arg1.readString();
            this.bestGuildTime = arg1.readInt();
            return;
        }

        public /* const */_type: int=310;

        public /* var */guildId: int;

        public /* var */guildName: string;

        public /* var */layer: int;

        public /* var */difficulty: int;

        public /* var */openDt: Date;

        public /* var */totalTime: int;

        public /* var */leftTime: int;

        public /* var */isLayerEnd: Boolean;

        public /* var */bestGuildName: string;

        public /* var */bestGuildTime: int;

        public static /* var */_regist: SGuildStruggleInfo;
    }

            SGuildStruggleInfo._regist = new SGuildStruggleInfo(true);
        